<template>
   <condition :list="list" :name="NAME" :field="field" :current="current" @listenCondition = "submitCondition"/>
</template>

<script>
import condition from './condition.vue'
export default {
  components: {
    condition
  },
  props: {
    list: {
      type: Array,
      default: null
    },
    current: {
      type: Number,
      default: null
    }},
  created() {
    this.NAME = '债务收入比'
    this.ID = 'echart-dti'
    this.field = ['小于5', '5-10', '10-15', '15-20', '20-25', '25-30', '30-35', '35-40', '40-45', '45-50', '50+']
  },
  methods: {
    submitCondition(data) {
      this.$emit('listenCondition', 'dti', data)

    }
  }
}
</script>
<style lang="scss">
.age-limit-card{
  .header-empty{
    width: 80px;
  }
  .sparkle-table{
    width: 100%;
  }
}
</style>
